package com.ziytek.web.citizen.pojo.basic;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.ziytek.web.citizen.constant.TableConstant;
import lombok.*;

/**
 * @author fenghx
 * @version v1.0
 * @className OperationDetailTbl
 * @descripton 工步操作详情
 * @date 2023/6/13 17:52
 * <p>
 * 自增主键ID
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = TableConstant.TABLE_BASIC_OPERATION_DETAIL)
public class OperationDetail extends BaseModel {

    /**
     * cabinetNo
     */
    @Column(comment = "cabinetNo")
    private String cabinetNo;

    /**
     * batterySerial
     */
    @Column(comment = "batterySerial")
    private Integer batterySerial;

    /**
     * stepId
     */
    @Column(comment = "stepId")
    private Integer stepId;

    /**
     * 启用或停止 0-启用中 1- 终止或已停用 2- 已完成 3- 中断 99-异常
     */
    private Integer startFlag;

    /**
     * operationId
     */
    @Column(comment = "operationId")
    private String operationId;

    /**
     * singleType 单个通道下发指令或者整体下达指令 0-整体下发 1-单个通道下发
     */
    @Column(comment = "singleType")
    private Integer singleType;

    /**
     * cellNum
     */
    private Integer cellNum;

    /**
     * orderNo
     */
    private Integer orderNo;

    /**
     * boardLineNum
     */
    private Integer boardLineNum;

    /**
     * boardAddress
     */
    private Integer boardAddress;

    @Column(name = "firstOrderTime", comment = "整体工步方案首个工步执行开始时间")
    private Long firstOrderTime;

    @Column(name = "beginTime", comment = "单个工步执行开始时间")
    private Long beginTime;

    @Column(name = "endTime", comment = "工步执行理论结束时间")
    private Long endTime;


    @Column(name = "timeSecond", comment = "中断时的执行总时长 单位秒")
    private Long interruptTimeSecond;

    @Column(name = "cap", comment = "中断时的容量数据值")
    private Float interruptCap;

    @Column(name = "batchNo", comment = "批次号")
    private String batchNo;

}
